import { positionType } from "@/types/form";
export function getSizeParams(width: number = 368, height: number = 667) {
      return {
            title: "宽高属性",
            property: { width, height },
      };
}

export function getPositionParams({
      top = "auto",
      left = "auto",
      right = "auto",
      bottom = "auto",
      zIndex = "0",
      position = "relative",
}: positionType) {
      return {
            title: "定位属性",
            property: {
                  position,
                  top,
                  left,
                  right,
                  bottom,
                  zIndex,
            },
      };
}

export function getBackgroundParams() {
      return {
            title: "背景属性",
            property: {
                  backgroundImage: "",
                  backgroundColor: "",
                  backgroundPosition: "0% 0%",
                  backgroundSize: "auto auto",
                  backgroundRepeat: "repeat",
                  backgroundOrigin: "padding-box",
                  backgroundClip: "border-box",
            },
      };
}
